﻿using System;
using System.Diagnostics.Contracts;

namespace RaspberryDebugger
{
    /// <summary>
    ///保存安装在树莓派上的.net核心SDK的信息。  
    /// </summary>
    internal class Sdk
    {
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="name">The SDK name.</param>
        /// <param name="version">The SDK version.</param>
        public Sdk(string name, string version)
        {
            Covenant.Requires<ArgumentNullException>(!string.IsNullOrEmpty(name), nameof(name));

            this.Name    = name;
            this.Version = version;
        }

        /// <summary>
        ///返回SDK的名称(like <b>3.1.402</b>).
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// 返回SDK的版本 (like <b>3.1.8</b>).
        /// </summary>
        public string Version { get; private set; }
    }
}
